
// #include <stdint.h>
#include "MCU_Time.h"


//将秒数转换成 时间结构
void TotalConvertTime(MCU_Time_T* time, uint32_t total)
{
    time->hour = (total / 3600) % 100;
    time->minute = (total / 60) % 60;
    time->seconds = total % 60;
}
//将时间结构转换成 秒数
uint32_t TimeConvertTotal(MCU_Time_T tm)
{
    return (tm.hour * 3600 + tm.minute * 60 + tm.seconds);
}
